#include "stdafx.h"
#include "cLines.h"

cLines lines;

void cLines::setSteps(Int s) {
	steps = s;
}

void cLines::offSet(Int pos) {
	linesDrawn = pos;
}

void cLines::draw(Int pos) {
	Flt posX = ((pos / steps) * 2.1) - 0.9;
	D.line(GREY_LIGHT, posX, -1, posX, 0.95);
	linesDrawn++;
	if (linesDrawn % 10 == 0) {
		TextDS tds;
		tds.color = BLACK;
		tds.align.set(0, 1);
		tds.shade = 0;
		tds.shadow = 0;
		tds.scale *= 0.4;
		
		D.text(tds, posX, 0.95, S + linesDrawn);
	}
}

cLines::cLines(void){
}

cLines::~cLines(void){
}
